package edu.ccut.saturn.component.impl.sql;

import java.util.List;
import java.util.Map;

import edu.ccut.saturn.component.ISaturnDataSqlItemInfo;
import edu.ccut.saturn.component.xml.ISaturnElement;
import edu.ccut.saturn.component.xml.SaturnTextElement;

public abstract class AbstractSqlTextItemInfo implements ISaturnDataSqlItemInfo {

	protected String text;

	public ISaturnElement toSaturnElement() {
		SaturnTextElement textElement = new SaturnTextElement(text);
		return textElement;
	}

	public String toXmlStr() {
		return text;
	}

	public String getPrepend() {
		return null;
	}

	public abstract String getSubSql(Map<String, Object> param)
			throws Exception;

	public List<ISaturnDataSqlItemInfo> getSaturnDataSqlItemInfos() {
		return null;
	}

	public String getText() {
		return text;
	}
}
